function parseHtml(elem, children, editor) {
  const value = elem.getAttribute('data-value') || ''
  return {
    type: 'formula',
    value,
    children: [{ text: '' }] // void node 必须有一个空白 text
  }
}

const parseHtmlConf = {
  selector: 'wcs-formula',
  parseElemHtml: parseHtml
}

export default parseHtmlConf
